﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MAT.Model;
using CrystalDecisions.CrystalReports.Engine;
using System.Windows.Forms;

namespace MAT.Controllers
{
    class ctrTotalAssetValue
    {
        private frmTotalAssetValue _totalvalue = null;

        public frmTotalAssetValue Totalvalue
        {
            get { return _totalvalue; }
            set { _totalvalue = value; }
        }
        CommonClass ccl = new CommonClass();
        public void report_load()
        {
            ReportDocument report = new ReportDocument();
            report.Load(Application.StartupPath + @"\..\..\Reports\crpTotalAssetValue.rpt");
            ccl.automationConnect(report);
            _totalvalue.crystalReportViewer1.ReportSource = report;
            _totalvalue.crystalReportViewer1.Refresh();
        }
        public void btnClose_Click()
        {
            _totalvalue.Close();
        }
    }
}
